package models;

import javax.persistence.Entity;
import javax.persistence.Id;

import play.data.validation.MaxSize;
import play.db.jpa.GenericModel;

/**
 * Used to group a similar tags
 * e.g. Computer Language, operational system etc   
 * may be used to group tags for search 
 */
@Entity
public class TagCategory extends GenericModel {

	@Id
	@MaxSize(40)
	public String name;
	
	@MaxSize(255)
	public String description;
	
	@Override
	public String toString() {
		return name;
	}

}
